class Whoa {
    Employee member
    Project worksInProject
    Course worksInCourse
    Integer year
    Double hours
    Integer mode=1  //define in which mode this project is visible: 0=budget only; 1=sandbox only; 2=both; default:sandbox only;
    

    public Float calculateCost(){
        return (member.salary * 12 * hours)/ member.getWorkingHoursPerYear()
    }

    static constraints = {
        worksInCourse(nullable:true)
        worksInProject(nullable:true)
    }
}
